package com.sbtr.business.calibration.service;

import com.sbtr.common.PageDto;
import com.sbtr.open.calibration.dto.*;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface ICalibrationDetailsService {

    public CalibrationDetailsDto save(CalibrationDetailsDto dto);

    public CalibrationDetailsDto update(CalibrationDetailsDto dto);

    boolean batchSave(List<CalibrationDetailsDto> dtos);

    public CalibrationDetailsDto findById(Long id);

    public PageDto<CalibrationDetailsDto> searchDetails(CalibrationSearchDetailsDto dto);

    public PageDto<CalibrationDetailsDto> searchDetailsByCalibrationId(CalibrationSearchByDetailsDto dto);

    public List<CalibrationDetailsDto> searchDetailsCalibrationId(Long calibrationId);

    public CalibrationProgressDto searchProgressByFinisher(CalibrationSearchByDetailsDto dto);

    public boolean updateCalibrationDetailsTxtCount(CalibrationDto dto) ;

    public CalibrationDetailsDto searchDetailsFinisher(Long calibrationId, String finisher);

    public boolean updateIsAvailable(List<Long> idList);

}
